package com.test.spring;

import com.test.spring.annotation.Component;
import com.test.spring.annotation.Scope;
import lombok.Data;
import lombok.NoArgsConstructor;

@Component("helloJava")
@Scope("singleton")
@Data
@NoArgsConstructor
public class HelloJava {
    public void sayHello(){
        System.out.println("Hello Java");
    }
}
